import request from '@/utils/request'

// 查询手续费分红列表
export function listServiceBonus(query) {
  return request({
    url: '/admin/serviceBonus/list',
    method: 'get',
    params: query
  })
}

// 查询手续费分红详细
export function getServiceBonus(id) {
  return request({
    url: '/admin/serviceBonus/' + id,
    method: 'get'
  })
}

// 新增手续费分红
export function addServiceBonus(data) {
  return request({
    url: '/admin/serviceBonus',
    method: 'post',
    data: data
  })
}

// 修改手续费分红
export function updateServiceBonus(data) {
  return request({
    url: '/admin/serviceBonus',
    method: 'put',
    data: data
  })
}

// 删除手续费分红
export function delServiceBonus(id) {
  return request({
    url: '/admin/serviceBonus/' + id,
    method: 'delete'
  })
}
